package com.zjitc.config;

import com.zjitc.obj.Teacher;
import com.zjitc.obj.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/13 14:12
 * @description:
 */
@Configuration
@ImportResource(locations = {"spring-configuration2.xml"})
public class JavaConfiguration2 {
@Bean
  public User user(Teacher teacher){
  return new User(teacher);
}
}
